Skip to content

refactor: organized pages - #303

Merged
gmmcosta15 merged 2 commits into
ref/filamentTab-stackedWidgetfrom
ref/printTab-stackedWidget
Sep 28, 2026
Merged

gmmcosta15 merged 2 commits into
ref/filamentTab-stackedWidgetfrom
ref/printTab-stackedWidget

Conversation

@Robert0Mart

@Robert0Mart Robert0Mart commented Aug 13, 2026 •

Copy link
Copy Markdown
Collaborator

Stacked PR — merge order

This PR is stacked on top of:

  1. refactor main window stacked widget #298
  2. refactor: separated control stacked widget into pages #299

Do not merge until #298 and #299 are merged first.

CI won't run here until the base becomes dev (after the parents merge).

Description

  • refactor

BlocksScreen/lib/panels/printTab.py

  • updated paths

BlocksScreen/lib/panels/widgets/PrintTab/babystepPage.py
BlocksScreen/lib/panels/widgets/PrintTab/confirmPage.py
BlocksScreen/lib/panels/widgets/PrintTab/filesPage.py
BlocksScreen/lib/panels/widgets/PrintTab/jobStatusPage.py
BlocksScreen/lib/panels/widgets/PrintTab/sensorsPanel.py
BlocksScreen/lib/panels/widgets/PrintTab/sensorWidget.py
BlocksScreen/lib/panels/widgets/PrintTab/tunePage.py

  • organized pages into a single folder

BlocksScreen/lib/ui/printStackedWidget.ui
BlocksScreen/lib/ui/printStackedWidget_ui.py

  • deleted unused UI files

@Robert0Mart
Robert0Mart marked this pull request as ready for review August 14, 2026 08:54
@Robert0Mart Robert0Mart added the Refactor Enhancing code's readability, maintainability, and extensibility while addressing technical debt. label Aug 14, 2026
@gmmcosta15
gmmcosta15 self-requested a review September 23, 2026 10:10

@gmmcosta15 gmmcosta15 left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's good

  • 6 of the 7 moves are 100% renames; the 7th (sensorsPanel.py) only has its one import line fixed, so review and rebase cost is minimal
  • Drops ~3.7k lines of unused printStackedWidget.ui/_ui.py (no importers)
  • test_job_status_page_unit.py import updated in the same PR
  • Import block stays isort-ordered, so ruff I001 stays quiet
  • Groups the print-tab pages next to their only user, printTab.py (checked: no other importers)

1. widgets/PrintTab/ has no __init__.py, but lib/panels/widgets/ does
Same as FilamentTab/ (#302) and ControlTab/ (#299).

touch BlocksScreen/lib/panels/widgets/PrintTab/__init__.py

2. pyuic names still point at the deleted printStackedWidget.ui
printTab.py:504 setObjectName("printStackedWidget"), printTab.py:615 and PrintTab/tunePage.py:472 setWindowTitle(_translate("printStackedWidget", "StackedWidget")). A window title does nothing on a stacked page.

self.setObjectName("print_tab")
# delete both setWindowTitle(...) lines

@RobeMartins
RobeMartins force-pushed the ref/printTab-stackedWidget branch from d7ff146 to 41f8480 Compare September 25, 2026 09:25
@RobeMartins
RobeMartins force-pushed the ref/printTab-stackedWidget branch from 41f8480 to 6f0d89d Compare September 28, 2026 09:48
@RobeMartins
RobeMartins force-pushed the ref/printTab-stackedWidget branch from 6f0d89d to 0f2a15d Compare September 28, 2026 10:04
@gmmcosta15
gmmcosta15 merged commit e469546 into ref/controlTab-stackedWidget Sep 28, 2026
3 checks passed
gmmcosta15 pushed a commit that referenced this pull request Sep 28, 2026
## Description 

- [x] fix

### Changes
 address reviews on other pr of this stacked PR
#298 
#299 
#302 
#303
#315 
#332

---------

Co-authored-by: Robert0Mart <robertomicael.martins@gmail.com>
@gmmcosta15
gmmcosta15 deleted the ref/printTab-stackedWidget branch September 28, 2026 11:07
RobeMartins pushed a commit that referenced this pull request Sep 28, 2026
This PR is stacked on top of:
1. #298
2. #299

**Do not merge until #298 and #299 are merged first.**

CI won't run here until the base becomes `dev` (after the parents
merge).

- [x] refactor

**BlocksScreen/lib/panels/printTab.py**
- updated paths

**BlocksScreen/lib/panels/widgets/PrintTab/babystepPage.py**
**BlocksScreen/lib/panels/widgets/PrintTab/confirmPage.py**
**BlocksScreen/lib/panels/widgets/PrintTab/filesPage.py**
**BlocksScreen/lib/panels/widgets/PrintTab/jobStatusPage.py**
**BlocksScreen/lib/panels/widgets/PrintTab/sensorsPanel.py**
**BlocksScreen/lib/panels/widgets/PrintTab/sensorWidget.py**
**BlocksScreen/lib/panels/widgets/PrintTab/tunePage.py**
- organized pages into a single folder

**BlocksScreen/lib/ui/printStackedWidget.ui**
**BlocksScreen/lib/ui/printStackedWidget_ui.py**
- deleted unused UI files
RobeMartins added a commit that referenced this pull request Sep 28, 2026
## Description 

- [x] fix

### Changes
 address reviews on other pr of this stacked PR
#298 
#299 
#302 
#303
#315 
#332

---------

Co-authored-by: Robert0Mart <robertomicael.martins@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Refactor Enhancing code's readability, maintainability, and extensibility while addressing technical debt.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants